package com.hbnu.dao;
import com.hbnu.pojo.Door;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface DoorMapper {

    //1.查询所有门店信息
    public List<Door> findAll();

    //2.新增门店信息
    public void addDoor(Door door);

    //3.根据id删除门店信息
    public void deleteById(Integer id);

    //4.根据id查询门店信息
    public Door findById(Integer id);

    //5.根据id更新门店信息
    public void updateById(Door door);

    int countOrdersByDoorId(@Param("doorId") Integer doorId);
}

